﻿#if NETFX
using Color = System.Windows.Media.Color;
#elif NETFX_CORE || WINDOWS_PHONE
using Color = Windows.UI.Color;
#endif

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;



namespace NicoView.Model.Extentions
{
    /// <summary>
    /// 色拡張
    /// </summary>
    public static class ColorExtention
    {
        private static readonly Color Empty = new Color();
        /// <summary>
        /// 色が空か判定
        /// </summary>
        /// <param name="color"></param>
        /// <returns></returns>
        public static bool IsEmpty(this Color color)
        {
            return color == Empty;
        }
    }
}
